﻿using System;

namespace ClassLibrary1
{
    public class Class1
    {

        static void Main(string[] args)
        {
            int num;
            Console.WriteLine("Please enter a number:");
            num = Convert.ToInt32(Console.ReadLine());
            for (int i = 2; i <= num ; i++)
            {
                if (num % i == 0) 
                {
                    bool flag = false;
                    for (int j = 2; j <= i/2; j++)
                    {
                        if (i % j == 0)
                        {
                            flag = true;
                        }
                    }
                    if (!flag) Console.WriteLine(i);
                }
            }
            Console.ReadKey();
            int[] num2;  int k=0;
            
           
            }
        }
    }
